import { http } from '@/utils/http/axios';

export function listShift(data = {}) {
  return http.request({
    url: '/admin/base/shift/list',
    method: 'get',
    data,
  });
}

export function pageShift(data = {}) {
  return http.request({
    url: '/admin/base/shift/page',
    method: 'post',
    data,
  });
}

export function addShift(data = {}) {
  return http.request({
    url: '/admin/base/shift/add',
    method: 'post',
    data,
  });
}

export function updateShift(data = {}) {
  return http.request({
    url: '/admin/base/shift/update',
    method: 'post',
    data,
  });
}

export function delShift(data = {}) {
  return http.request({
    url: '/admin/base/shift/delete',
    method: 'post',
    data,
  });
}

export function shiftInfo(data = {}) {
  return http.request({
    url: '/admin/base/shift/info',
    method: 'post',
    data,
  });
}
